package org.jeecg.common.modules.register.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: register_pay_order
 * @Author: jeecg-boot
 * @Date:   2021-01-28
 * @Version: V1.0
 */
@Data
@TableName("register_pay_order")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="register_pay_order对象", description="register_pay_order")
public class RegisterPayOrder implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**订单号，唯一*/
	@Excel(name = "订单号，唯一", width = 15)
    @ApiModelProperty(value = "订单号，唯一")
    private String orderCode;
	/**医生ID*/
	@Excel(name = "医生ID", width = 15)
    @ApiModelProperty(value = "医生ID")
    private String doctorId;
	/**微信患者id*/
	@Excel(name = "微信患者id", width = 15)
    @ApiModelProperty(value = "微信患者id")
    private String wxUserinfoId;
	/**关联ID，支付关联退款，退款关联支付*/
	@Excel(name = "关联ID，支付关联退款，退款关联支付", width = 15)
    @ApiModelProperty(value = "关联ID，支付关联退款，退款关联支付")
    private String relationId;
    /**第三方订单号*/
    @Excel(name = "第三方订单号", width = 15)
    @ApiModelProperty(value = "第三方订单号")
    private String   thirdOrderCode;
	/**支付金额，单位分*/
	@Excel(name = "支付金额，单位分", width = 15)
    @ApiModelProperty(value = "支付金额，单位分")
    private Integer amount;
	/**开始支付时间*/
	@Excel(name = "开始支付时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "开始支付时间")
    private Date startPayTime;
	/**支付完成时间*/
	@Excel(name = "支付完成时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "支付完成时间")
    private Date endPayTime;
	/**订单状态 0 未支付  1支付成功 2支付失败 3 已退款*/
	@Excel(name = "订单状态 0 未支付  1支付成功 2支付失败 3 已退款", width = 15)
    @ApiModelProperty(value = "订单状态 0 未支付  1支付成功 2支付失败 3 已退款")
    private Integer status;
	/**3 挂号*/
	@Excel(name = "3 挂号", width = 15)
    @ApiModelProperty(value = "3 挂号")
    private Integer shopType;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**订单类型  1支付  2退款*/
	@Excel(name = "订单类型  1支付  2退款", width = 15)
    @ApiModelProperty(value = "订单类型  1支付  2退款")
    private Integer orderType;
    /**挂号记录id*/
    @Excel(name = "挂号记录id", width = 15)
    @ApiModelProperty(value = "挂号记录id")
    private String registerRecordId;
    /**患者ID*/
    @Excel(name = "患者ID", width = 15)
    @ApiModelProperty(value = "患者ID")
    private String patientId;
    private String invalid;
}
